{% extends "base.html" %}
{% block content %}
<section class="section">
	<div>
		<p>小吃大全：</p>
		<div class="content love clear">
            {% if data.list %}
                {% for i in data.list %}
                <div>
                    <a href="/food/{{i.classid}}/{{i.id}}/index.html"><img src="{{i.pic}}"></a>
                    <p>
                        <a href="/food/{{i.classid}}/{{i.id}}/index.html">【{{i.name}}】{{i.content|truncatewords:10}}</a>
                    </p>
                </div>
                {% endfor %}
            {% elif data %}
                {% for i in data %}
                <div>
                    <a href="/food/{{i.class_id}}/{{i.d_id}}/index.html"><img src="{{i.pic}}"></a>
                    <p>
                        <a href="/food/{{i.class_id}}/{{i.d_id}}/index.html">【{{i.name}}】{{i.content|truncatewords:10}}</a>
                    </p>
                </div>
                {% endfor %}
            {% endif %}
		</div>
	</div>

</section>

{% endblock %}